package tr.edu.metu.is550.isell.rest.message;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "error")
public class ErrorMessage {
    @XmlElement
    private String key;
    @XmlElement
    private String desc;
    @XmlElement
    private String[] args;


    public ErrorMessage() {
    }

    public ErrorMessage(String key, String desc) {
        this(key, desc, (String[]) null);
    }

    public ErrorMessage(String key, String desc, String... args) {
        this.key = key;
        this.desc = desc;
        this.args = args;
    }


}
